import request from '@/utils/request'
//获取规范统计
export function getSpecificationCount() {
  return request({
    url: '/system/standardsystem/GovernanceNorms/specificationCount',
    method: 'get',
  })
}

export function apiCallSort() {
  return request({
    url: '/system/MarketApi/MarketApi/apiCallSort',
    method: 'get',
  })
}

export function countApiCallSortUserCallSortcount() {
  return request({
    url: '/system/MarketApi/MarketApi/countApiCallSortUserCallSort',
    method: 'get',
  })
}
export function serviceAccessToday() {
  return request({
    url: '/system/MarketApi/MarketApi/serviceAccessToday',
    method: 'get',
  })
}

export function serviceAccessVolume({ params }) {
  return request({
    url: '/system/MarketApi/MarketApi/serviceAccessVolume',
    method: 'get',
    params,
  })
}

export function userCallSort() {
  return request({
    url: '/system/MarketApi/MarketApi/userCallSort',
    method: 'get',
  })
}
export function getByType() {
  return request({
    url: '/system/job/QualityCheckReport/countGroupRules',
    method: 'get',
  })
}
//大屏接口
export function getDashboard() {
  return request({
    url: '/system/metadataModel/table/getTablesNums',
    method: 'post',
  })
}

export function serviceSubscriberTop() {
  return request({
    url: '/system/MarketApi/MarketApi/serviceSubscriberTop',
    method: 'get',
  })
}

export function objectSubscriberCount() {
  return request({
    url: '/system/MarketApi/MarketApi/objectSubscriberCount',
    method: 'get',
  })
}

export function countMarketApiLogsAvgResponseTime() {
  return request({
    url: '/system/MarketApi/MarketApi/countMarketApiLogsAvgResponseTime',
    method: 'get',
  })
}
